/**
 *  Copyright (C) 2006 zhangbo (freeeob@gmail.com)
 *
 *  This product is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License as published by
 *  the Free Software Foundation; either version 2.1 of the License, or
 *  (at your option) any later version.
 * 
 *  This product is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 * 
 *  You should have received a copy of the GNU Lesser General Public License
 *  along with this library; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.
 *
 *  author:zhangbo
 *  Email:jsjava@gmail.com
 */
 
function TableUtils(){
	this.jsjava_class="jsorg.eob.document.TableUtils";
}

/**
 * Insert a row of table in the specifized position
 * @param tableObj the table object
 * @param index the specifized position
 */
TableUtils.insertRow=function(tableObj,index){
	if(!index){
		index=-1;
	}
	return tableObj.insertRow(index);
};

/**
 * Delete a row of table on the specifized position
 * @param tableObj the table object
 * @param index the specifized position
 */
TableUtils.deleteRow=function(tableObj,index){
	if(!index){
		index=-1;
	}
	tableObj.deleteRow(index);
};

/**
 * Insert a cell of row on the specifized position
 * @param tableObj the table object
 * @param index the specifized position
 */
TableUtils.insertCell=function(trObj,index){
	if(!index){
		index=-1;
	}
	return trObj.insertCell(index);
};

/**
 * Delete a cell of row on the specifized position
 * @param tableObj the table object
 * @param index the specifized position
 */
TableUtils.deleteCell=function(trObj,index){
	if(!index){
		index=-1;
	}
	trObj.deleteCell(index);
};